package com.situ.controller;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class JDBC {
    public static void main(String[] args) {
        String url = "jdbc:mysql://localhost:3306/management?user=root&password=05304833ljx";
        try {
            Connection conn = DriverManager.getConnection(url);
            System.out.println("Connection successful!");
            // 进行数据库操作
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }
}

